//Avatar

.employee_avatar_small
	@extend .avatar-sm
	vertical-align: middle
	img
		padding: 0
		border: none

.employee_avatar
	@extend .avatar-lg
	display: block!important
	margin: 10px auto!important
	text-align: center

.avatar-xs
	@include avatar(16px, 16px)
.avatar-sm
	@include avatar(32px, 32px)
.avatar-md
	@include avatar(48px, 32px)
.avatar-lg
	@include avatar(80px, 80px)
.avatar-xl
	@include avatar(128px, 128px)


#employee-thumbnail
	margin-bottom: 10px
	width: 104px
	height: 104px
	background-image: url()
	background-size: contain
	position: relative
	border: solid 1px #ccc
	@include border-radius(4px)
	@include box-shadow(white 0 0 0 4px inset)
	&:before
		@extend .icon
		@extend .icon-spin
		@extend .icon-refresh
		position: absolute
		top: 10px
		display: block
		text-align: center
		font-size: 2em
		z-index: 10
		color: #ccc
		@include left(10px)
	a
		width: 100px
		height: 100px
		overflow: hidden
		display: block
		position: absolute
		top: 1px
		z-index: 100
		background-position: center
		background-size: contain
		border: none
		@include left(1px)
		@include box-shadow(white 0 0 0 3px inset)



.message-item-initial
	h2
		font-size: 1.5em
		@include margin(0, 0, 5px, 0)
	.message-item-initial-body
		@extend .panel
		position: relative
		margin-top: 10px
	.message-date
		color: #bbb
		margin-bottom: 10px

//Messages
.message-item
	@extend .media
	position: relative
	border-bottom: solid 1px #EEEEEE
	@include margin(0, 0, 0, 30px)
	padding: 10px 0
	&:last-child
		border: none
	.message-item-heading
		display: inline-block
	.message-body
		@include margin(0, 0, 0, 80px)
		.message-item-text
			@include padding(0, 0, 0, 10px)
			@include border-left(2px solid #ccc)
	.message-avatar
		position: absolute
		top: 10px
		@include left(10px)
	.message-date
		color: #bbb

//Arrows
.arrow:before, .arrow:after
	position: absolute
	display: inline-block
	border-color: transparent
	border-style: solid
	content: ""
.arrow-left:before
	top: 6px
	@include ltr
		border-right-color: #d1d4d7
		border-width: 7px 7px 7px 0
	@include rtl
		border-left-color: #d1d4d7
		border-width: 7px 0 7px 7px
	@include margin-left(-7px)
	@include left(0)
.arrow-left:after
	top: 7px
	@include ltr
		border-right-color: #fff
		border-width: 6px 6px 6px 0
	@include rtl
		border-left-color: #fff
		border-width: 6px 0 6px 6px
	@include left(0)
	@include margin-left(-6px)
.arrow-right:before
	top: 6px
	@include ltr
		border-left-color: #d1d4d7
		border-width: 7px 0 7px 7px
	@include rtl
		border-right-color: #d1d4d7
		border-width: 7px 7px 7px 0
	@include right(0px)
	@include margin-right(-7px)
.arrow-right:after
	top: 7px
	@include ltr
		border-left-color: #fff
		border-width: 6px 0 6px 6px
	@include rtl
		border-right-color: #fff
		border-width: 6px 6px 6px 0
	@include right(0px)
	@include margin-right(-6px)

//Timeline
$time-icon-size: 40px
.timeline
	display: table
	width: 100%
	border-spacing: 0
	table-layout: fixed
	position: relative
	border-collapse: collapse
	&:before
		content: ""
		width: 6px
		position: absolute
		top: 0
		bottom: 30px
		background-color: #ddd
		z-index: 0
		@include margin-left(-4px)
		@include left(50%)
	.timeline-item
		display: table-row
		.timeline-caption
			display: table-cell
			vertical-align: top
			width: 50%
			.timeline-panel
				@extend .panel
				display: inline-block
				position: relative
				@include text-align(left)
				@include margin-left($time-icon-size + 2px)
				@include box-shadow(0)
			h5
				margin: 0
				span
					display: block
					color: #999
					margin-bottom: 4px
					font-size: 12px
			p
				font-size: 12px
				margin-bottom: 0
				margin-top: 10px
		.timeline-date
			position: absolute
			width: 150px
			top: 10px
			@include text-align(right)
			@include left(-220px)
		.timeline-icon
			position: absolute
			width: $time-icon-size
			height: $time-icon-size
			line-height: $time-icon-size
			border-radius: $time-icon-size
			top: -2px
			text-align: center
			border: 2px solid #fff
			background-color: #666
			@include left(-($time-icon-size + $time-icon-size/2 + 2px))
			i
				font-size: ($time-icon-size/2)
				margin-top: 5px
				color: #fff
		&:before, &.alt:after
			content: ""
			display: block
			width: 50%
		&.alt
			@include text-align(right)
			&:before
				display: none
			.timeline-panel
				@include margin-right($time-icon-size)
				@include margin-left(0)
			.timeline-date
				@include right(-220px)
				@include text-align(left)
				@include left(auto)
			.timeline-icon
				@include left(auto)
				@include right(-($time-icon-size+$time-icon-size/2))
		&.active
			display: table-caption
			text-align: center
			&:before
				width: 1%
			.timeline-panel
				@include margin-left(0)
			.timeline-caption
				display: inline-block
				width: auto
			.timeline-date,
			.timeline-icon
				position: static
				margin-bottom: 10px
				display: inline-block
				width: auto
.command-danger
	background-color: $brand-danger!important
.command-success
	background-color: $brand-success!important
